import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
  { path: '', pathMatch: 'full', redirectTo: '/welcome' },
  { path: 'antd', loadChildren: () => import('./antd/antd.module').then(m => m.AntdModule) },
  { path: 'table', loadChildren: () => import('./antd/table/table.module').then(m => m.TableModule) },
  { path: 'form', loadChildren: () => import('./antd/form/form.module').then(m => m.FormModule) },
  { path: 'echarts', loadChildren: () => import('./echarts/echarts.module').then(m => m.EchartsModule) },
  { path: 'welcome', loadChildren: () => import('./antd/welcome/welcome.module').then(m => m.WelcomeModule) },
  { path: 'workplace', loadChildren: () => import('./antd/workplace/workplace.module').then(m => m.WorkplaceModule) },
  // {
  //   path: 'workplace', component: WorkplaceComponent
  // },
//   { path: 'echartsUse', loadChildren: () => import('./echarts/echart-use/echart-use.module').then(m => m.EchartUseModule) },
//   { path: 'dynamic', loadChildren: () => import('./echarts/echart-dynamic/echart-dynamic.module').then(m => m.EchartDynamicModule) },
//   { path: 'directive', loadChildren: () => import('./echarts/echart-directive/echart-directive.module').then(m => m.EchartDirectiveModule) },
//   { path: 'echartchild', loadChildren: () => import('./echarts/echart-child/echart-child.module').then(m => m.EchartChildModule) },
//   { path: 'liquidfill', loadChildren: () => import('./echarts/echart-liquidfill/echart-liquidfill.module').then(m => m.EchartLiquidfillModule) },
//   { path: 'analysis', loadChildren: () => import('./echarts/echart-analysis/echart-analysis.module').then(m => m.EchartAnalysisModule) },
  { path: 'component', loadChildren: () => import('./components/component.module').then(m => m.ComponentModule) },
  { path: 'rxjsuse', loadChildren: () => import('./rxjsuse/rxjsuse.module').then(m => m.RxjsuseModule) },
  { path: 'other', loadChildren: () => import('./other/other.module').then(m => m.OtherModule) },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
